package com.peza.bikelog.common.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Embeddable;

@Embeddable
public class SpeedData implements Serializable{

	private static final long serialVersionUID = 1L;

	@Column (name="DURATION")
	private Integer duration;
	
	@Column (name="MAXSPD")
	private float maxSpeed;
	
	@Column (name="AVGSPD")
	private float averageSpeed;
	
	@Column (name="AVGWATT")
	private Integer averageWatts;
	
	@Column (name="MAXWATT")
	private Integer maxWatts;
	
	@Column (name="AVGPF")
	private Integer averagePedalFreq;
	
	@Column (name="MAXPF")
	private Integer maxPedalFreq;

	
	public Integer getDuration() {
		return duration;
	}

	public void setDuration(Integer duration) {
		this.duration = duration;
	}

	public float getMaxSpeed() {
		return maxSpeed;
	}

	public void setMaxSpeed(float maxSpeed) {
		this.maxSpeed = maxSpeed;
	}

	public float getAverageSpeed() {
		return averageSpeed;
	}

	public void setAverageSpeed(float averageSpeed) {
		this.averageSpeed = averageSpeed;
	}

	public Integer getAverageWatts() {
		return averageWatts;
	}

	public void setAverageWatts(Integer averageWatts) {
		this.averageWatts = averageWatts;
	}

	public Integer getMaxWatts() {
		return maxWatts;
	}

	public void setMaxWatts(Integer maxWatts) {
		this.maxWatts = maxWatts;
	}

	public Integer getAveragePedalFreq() {
		return averagePedalFreq;
	}

	public void setAveragePedalFreq(Integer averagePedalFreq) {
		this.averagePedalFreq = averagePedalFreq;
	}

	public Integer getMaxPedalFreq() {
		return maxPedalFreq;
	}

	public void setMaxPedalFreq(Integer maxPedalFreq) {
		this.maxPedalFreq = maxPedalFreq;
	}

	@Override
	public String toString() {
		return "SpeedData [duration=" + duration + ", maxSpeed=" + maxSpeed
				+ ", averageSpeed=" + averageSpeed + ", averageWatts="
				+ averageWatts + ", maxWatts=" + maxWatts
				+ ", averagePedalFreq=" + averagePedalFreq + ", maxPedalFreq="
				+ maxPedalFreq + "]";
	}

	
	

	
}
